package com.xhh.nphm.gaoxin.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xhh.nphm.gaoxin.entity.GxqTwfJudgeEty;
import com.xhh.nphm.gaoxin.mapper.GxqTwfJudgeDao;
import com.xhh.nphm.gaoxin.service.GxqITwfJudgeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

@Service
public class GxqTwfJudgeServiceImpl extends ServiceImpl<com.xhh.nphm.gaoxin.mapper.GxqTwfJudgeDao, GxqTwfJudgeEty> implements GxqITwfJudgeService {
    @Autowired
    private GxqTwfJudgeDao GxqTwfJudgeDao;
    /**
     * 回访意见列表数据
     * @param wfId
     * @return
     */
    @Override
    public List<Map<String,Object>> selectByWfId(Integer wfId) {
        return GxqTwfJudgeDao.selectByWfId(wfId);
    }

    /**
     * 回访情况列表数据
     *
     * @param wfId 工单编号
     * @return 列表数据
     */
    @Override
    public List<GxqTwfJudgeEty> backRsltDealJudgeListJson(Integer wfId) {
        QueryWrapper<GxqTwfJudgeEty> wrapper = new QueryWrapper<>();
        wrapper.eq("isDel",0);
        wrapper.eq("WfId",wfId);
        return getBaseMapper().selectList(wrapper);
    }
}
